package com.nlx.notes.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author nlx
 * @since 2024-12-15
 */
@Getter
@Setter
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    private String username;

    private String userCode;

    private String userType;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 性别
     */
    private Integer userSex;

    /**
     * 生日
     */
    private LocalDate birthday;

    /**
     * 个性签名
     */
    private String signature;

    private LocalDate vipExpireDate;

    /**
     * 密码（应该存储加密后的密码）
     */
    private String userPassword;

    /**
     * 手机号
     */
    private String userPhone;

    private LocalDateTime bindPhoneTime;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    /**
     * 注册时间
     */
    private LocalDateTime registerTime;

    private int delFlag;
}
